package services;

import model.KeyContainer;

import com.google.gdata.client.youtube.YouTubeService;
import com.google.gdata.util.AuthenticationException;

public class UserYoutubeService {
	
	private YouTubeService youtubeService;

	
	public UserYoutubeService(String username, String password)
	{
		this.youtubeService = new YouTubeService("dennis-fischer-youtube java uploader-1.0a", KeyContainer.getInstance().getDeveloperKey());
		try {
			this.youtubeService.setUserCredentials(username, password);
		} catch (AuthenticationException athenticationException) {
			
			System.out.println("Login Falsch!! du Idiot!");
		}
	}
	
	public YouTubeService getYoutubeService()
	{
		return this.youtubeService;
	}
}
